package ua.com.jpy.entity.catagory.product.attributset;

import java.util.Set;

import org.bson.types.ObjectId;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import ua.com.jpy.entity.IEntity;
import ua.com.jpy.entity.catagory.product.attributset.attribute.Attribute;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;

/**
 * @author LSD25
 *
 */
@Entity(noClassnameStored = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class AttributeSet implements IEntity {
	
	@Id
	private ObjectId id;
	
	@NotBlank
	private String name;
	
	@NotEmpty
	private Set<Attribute> attributeSet;

	public ObjectId getId() {
		return id;
	}

	public void setId(ObjectId id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Attribute> getAttributeSet() {
		return attributeSet;
	}

	public void setAttributeSet(Set<Attribute> attributeSet) {
		this.attributeSet = attributeSet;
	}
	
}
